<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/include/head.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><html:text name="sys.name" /></title>
</head>
<body>
<html:form action="/publicinfo/article/save.crm" id="saveForm">
	<html:token />
	<html:hidden id="article.id" name="article.id" />
	<table class="input-table" cellspacing="0" cellpadding="0" border="0"
		align="center">
		<tr>
			<td colspan="4" class="x-panel-header" style="text-align: center;"><html:text
				name="article.action" /></td>
		</tr>
		<html:if test="myMessage!=null">
			<tr>
				<td colspan="4" style="text-align: center;"><html:property
					value="myMessage" escape="false" /></td>
			</tr>
		</html:if>
		<tr>
			<td colspan="4" style="text-align: center;"><input type="button"
				onclick="javascript:saveFunction();" id="saveButton"
				value=" <html:text name="button.save"/> ">&nbsp;<input
				type="button" onclick="javascript:backFunction();" id="backButton"
				value=" <html:text name="button.back"/> "></td>
		</tr>
		<tr>
			<td colspan="4">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td><html:text name="article.articleTitle">
					</html:text></td>
					<td class="td-input"><html:textfield dataType="string"
						id="article.articleTitle" name="article.articleTitle"></html:textfield></td>
					<td><html:text name="article.articleContent">
					</html:text></td>
					<td class="td-input"><html:textfield dataType="string"
						id="article.articleContent" name="article.articleContent"></html:textfield></td>
				</tr>
				<tr>
					<td><html:text name="article.publishDatetime"></html:text></td>
					<td class="td-input"><html:date id="birthDay"
						name="article.publishDatetime" format="yyyy-MM-dd" /><html:textfield
						dataType="date" id="article.publishDatetime"
						name="article.publishDatetime" value="%{birthDay}" readonly="true" />&nbsp;<img
						style="border: 0px;" src="<%=WEBPATH%>/images/calendar.gif"
						onclick="WdatePicker({dateFmt:'yyyy-MM-dd',  el:'article.publishDatetime'})"></td>
					<td><html:text name="article.publishFlag">
					</html:text></td>
					<td class="td-input"><html:textfield dataType="string"
						id="article.publishFlag" name="article.publishFlag"></html:textfield></td>
				</tr>
				<tr>
					<td><html:text name="article.articleType">
					</html:text></td>
					<td class="td-input"><html:textfield dataType="string"
						id="article.articleType" name="article.articleType"></html:textfield></td>
					<td><html:text name="article.commentFlag">
					</html:text></td>
					<td class="td-input"><html:textfield dataType="string"
						id="article.commentFlag" name="article.commentFlag"></html:textfield></td>
				</tr>
				<tr>
					<td><html:text name="article.clickCount">
					</html:text></td>
					<td class="td-input"><html:textfield dataType="string"
						id="article.clickCount" name="article.clickCount"></html:textfield></td>
					<td colspan="2">&nbsp;</td>
				</tr>

				<html:if test='extendCustomer!=null&&extendCustomer!=""'>
					<tr>
						<td colspan="4" class="td-input"><br></br>
						<b><html:text name="entity.customauto"></html:text></b>
						<hr style="width: 100%;"></hr>
						</td>
					</tr>
					<html:property value="extendCustomer" escape="false" />
				</html:if>
			</table>
			</td>
			<%
				com.opensymphony.xwork2.util.ValueStack obj = (com.opensymphony.xwork2.util.ValueStack) request
							.getAttribute("struts.valueStack");
					obj.setValue("article", null);
			%>
		</tr>

	</table>
	<script type="text/javascript" language="javascript">
		//var provCity = new ProvCity(); 
		//provCity.init('','');  
		function backFunction(){
			window.location="<%=WEBPATH%>/publicinfo/article/index.crm";
		}
	</script>
</html:form>
</body>
</html>